﻿using Acme.BookStore.accommodationS;
using Acme.BookStore.Orders;
﻿using Acme.BookStore.CustomerTable;
using Acme.BookStore.CustomerTables;
using Acme.BookStore.GoodsProduct;
using Acme.BookStore.Goodss;
using Acme.BookStore.GoodsType;
using Acme.BookStore.GoodTable;
﻿using Acme.BookStore.Orders;
using Acme.BookStore.OrderTable;
﻿using Acme.BookStore.RBACIServices;
using Acme.BookStore.RBACTable;
using Acme.BookStore.RoomNumbers;
using Acme.BookStore.RoomPricess;
using Acme.BookStore.RoomTable;
using Acme.BookStore.RoomTypess;
using AutoMapper;

namespace Acme.BookStore;

public class BookStoreApplicationAutoMapperProfile : Profile
{
    public BookStoreApplicationAutoMapperProfile()
    {
        CreateMap<Bookroom, OrdersCodeDTO>().ReverseMap();
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */

        //商品列表
        CreateMap<GoodsCodeDTO, Goods>().ReverseMap();
        CreateMap<GoodsServicesUpdateDTO, Goods>().ReverseMap();

        //订单列表
        CreateMap<GoodsTypeDTO, GoodsOrder>().ReverseMap();
        CreateMap<GoodsTypeUpdateDTO, GoodsOrder>().ReverseMap();

        //商品标签
        CreateMap<GoodsProductDTO, GoodsTypes>().ReverseMap();
        CreateMap<GoodsProductUpdateDTO, GoodsTypes>().ReverseMap();

       //客户列表
        CreateMap<CustomersDTO, Customer>().ReverseMap();
        CreateMap<CustomersUpdateDTO, Customer>().ReverseMap();

        CreateMap<UserInfo, UserInfoDTO>().ReverseMap();
        CreateMap<Role, RoleDTO>().ReverseMap();
        CreateMap<Permissions, PermissionsDTO>().ReverseMap();

        CreateMap<RoomType, RoomTypeDTO>().ReverseMap();
        CreateMap<RoomType, RoomTypeUpdateDTO>().ReverseMap();
        CreateMap<RoomCodeInfo,RoomCodeInfoDTO>().ReverseMap();
        CreateMap<RoomCodeInfo,RoomCodeInfoUpdateDTO>().ReverseMap();


        CreateMap<accommodations, accommodationsCodeDTo>().ReverseMap();
        CreateMap<accommodations, accommodationUpdataDTO>().ReverseMap();
        CreateMap<RoomPrices,RoomPriceAddDTO>().ReverseMap();
        CreateMap<RoomPrices, RoomPriceUpdateDTO>().ReverseMap();
    }
}
